﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class PathHelp  {


    public static string FormatPath(string path)
    {
        return path.Replace('\\', '/');
    }
    public static string RemoveExtend(string path)
    {
        if (path.Contains("."))
            return  path.Remove(path.LastIndexOf("."));
        return path;
    }
    public static string GetAutoScriptPath()
    {
        return Application.dataPath + "/Framework/";
    }
    public static string  GetUIPath(string p)
    {
        return p.RemoveExtent().Format().Replace(PathConst.PrefabPath + "/", "");
    }
}
